projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8e8cda
)
GtkToolbar: partial fix for toolbar editing
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 27 Aug 2011 15:45:01 +0000
(11:45 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 27 Aug 2011 15:45:01 +0000
(11:45 -0400)
When using an editable toolbar in evince, we can end up
in gtk_toolbar_get_visible() position with item being the
highlight_tool_item, but not one of the regular children.
So, handle that.
gtk/gtktoolbar.c
patch
|
blob
|
history
diff --git
a/gtk/gtktoolbar.c
b/gtk/gtktoolbar.c
index d9f93fc8b486c0a9505f6300dfc21cfecebb355a..9bbbe94f5c8a09b827e2624bb6c91a6c50563129 100644
(file)
--- a/
gtk/gtktoolbar.c
+++ b/
gtk/gtktoolbar.c
@@
-3896,6
+3896,9
@@
gtk_toolbar_get_visible_position (GtkToolbar *toolbar,
{
CountingData count = { child, FALSE, 0, 0 };
+ if (child == (GtkWidget*)toolbar->priv->highlight_tool_item)
+ return 0;
+
/* foreach iterates in visible order */
gtk_container_forall (GTK_CONTAINER (toolbar),
count_widget_position,